package com.gingko.duominuo.data.source.local

import androidx.room.Database
import androidx.room.RoomDatabase
import com.gingko.duominuo.data.model.DownloadInfo
import com.gingko.duominuo.data.model.JobWorkVo
import com.gingko.duominuo.data.model.NameMappingVo
import com.gingko.duominuo.data.model.UserVo
import com.gingko.duominuo.data.source.local.dao.DownloadDao
import com.gingko.duominuo.data.source.local.dao.JobWorkDao
import com.gingko.duominuo.data.source.local.dao.NameMappingDao
import com.gingko.duominuo.data.source.local.dao.UserDao

@Database(entities = [UserVo::class, DownloadInfo::class, JobWorkVo::class, NameMappingVo::class], version = 3)
abstract class AppDataBase : RoomDatabase() {

    abstract fun getUserDao(): UserDao

    abstract fun getDownloadDao(): DownloadDao

    abstract fun getReviewTaskInfoDao(): JobWorkDao

    abstract fun getNameMappingDao(): NameMappingDao

}